home *** CD-ROM | disk | FTP | other *** search
/ ShareWare OnLine 2 / ShareWare OnLine Volume 2 (CMS Software)(1993).iso / graphics / manythng.zip / README.TXT < prev    next >
Text File  |  1993-04-15  |  3KB  |  68 lines

  1.                                                   4-15-93
  2.  
  3. This program is for demo purposes only, I do not want you to send me
  4. any money.  I just want to share a program I had fun writing.  This
  5. program was fun to me in that it was possible to do a windows 3.1
  6. screen saver entirely in visual basic and windows calls without
  7. additional DLLs required.
  8.  
  9. This is a screen saver written in visual basic 2.0 (standard
  10. edition).  The program actually cycles between several different
  11. screen savers within the same program to give quite a bit of
  12. variety.  This program is based on an example in "Learn Programming
  13. and Visual Basic 2.0" by John Socha and Sybex Inc.
  14.  
  15. Most of the savers work by starting at random positions with zero
  16. velocity and acceleration vectors.  Then each time through a random
  17. acceleration is added to the velocities.  When an object gets to the
  18. edge of the screen the velocities sign is set to bring it back into 
  19. screen which then looks to the user as if the object bounced off the
  20. edge of the screen.  Also when the velocity reaches a certain limit,
  21. the velocity is set to zero to prevent things from getting too out
  22. of hand.
  23.  
  24. The grabbing of the desktop pixels was based on Jonathan Zuck's 
  25. screen-capture utilities in the November issue of Windows Tech 
  26. Journal.  The desktop animation is done by using the windows DLL
  27. 'BitBlt' and experimenting using the BC++ reference guide (not the
  28. best source).
  29.  
  30. Disclaimers:    I have no idea what the side effects of this program
  31. may be on your system.  The program is provided as an example at no
  32. charge.  I am not a windows expert, and the program is provided as is
  33. without any warranties or obligations.
  34.  
  35. This program was developed on a 386/40MHz clone with a JDR VGA 1024+ 
  36. card (ET4000 based) using Visual Basic 2.0 (therefore the saver needs
  37. VBRUN200.DLL to run).  The line drawings are fast enough on this
  38. machine, but the screen rolling tends to be jerky at the faster
  39. speeds.
  40.  
  41. Lessons Learned:
  42.  
  43. Application Title must start  with 'SCRNSAVE' and has maximum length
  44.      that is recognized.
  45.  
  46. I was using a VB clock program that while minimized would change 
  47.      caption to show time.  For some reason changing the caption
  48.      would prevent windows from calling the screen saver.
  49.  
  50. In the windows desktop, I set timeout interval before saver is called 
  51.      to 1 minute for testing.  I found that the display got slower 
  52.      and slower.  Then when I would move the mouse, the display
  53.      would change many times before returning to windows.  It seems
  54.      that windows was calling another instance of the program every
  55.      minute.  I don't know why this is, but to fix the problem the
  56.      program now checks for previous instances when it starts up,
  57.      and then quits if another instance is already running.
  58.  
  59. PS -- even though I have Borland C++ and am a C programmer, I much
  60.      prefer the visual basic development environment for forms,
  61.      debugging, etc.
  62.  
  63.  
  64.      Bruce McLean
  65.      800 S. HW. 1417 #1214
  66.      Sherman TX 75090
  67.      CIS: 71413,2664
  68.